﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ThongBao.ascx.cs" Inherits="CMS.Web.Template.ThongBao" %>
<table width="100%" align="center" class="Table_Border" style="border-collapse: collapse" cellSpacing="0" cellPadding="0" border="0">
    <tr>
        <td valign="middle" align="left" height="50px">
            <font class="Title">THÔNG BÁO</font></td>
    </tr>    
    
    <tr id="trDetail" runat="server">
        <td>
            <table width="100%" cellpadding="3" cellspacing="0">
                <tr>
                    <td align="left">
                        <asp:Label ID="lblTitle" Runat="server" Font-Bold="True" CssClass="News_Title_Text"></asp:Label>
                    </td>
                </tr> 
                <tr>
                    <td align="left">
                        <asp:Label ID="lblContent" Runat="server" CssClass="News_Text_Main"></asp:Label>
                    </td>
                </tr>
                <tr id="trFile" runat="server">
                    <td align="left" class="News_Text_Main">
                        File đính kèm: <a id="TenFile" class="Link-button" href="#" runat="server">    
                                <img src="Images/Download.ico" border="0" width="16px" height="16px"/>  
                            </a>
                    </td>
                </tr>
                <tr>
                    <td height="20px"></td>
                </tr>
            </table>
        </td>
    </tr>    
    <tr>
        <td width="100%" align="center">
            <asp:GridView ID="gridObj" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="ID"
                Width="99%" CellPadding="4" ForeColor="#333333" GridLines="None" OnPageIndexChanging="gridObj_PageIndexChanging" BackColor="Transparent"
                EmptyDataText="Không có thông báo nào!" EmptyDataRowStyle-CssClass="Row_Error" OnRowCreated="gridObj_RowCreated" CssClass="Grid_Border">
                <Columns>          
                    <asp:TemplateField HeaderText="Tên thông báo">
                        <HeaderStyle HorizontalAlign="Left" Width="80%"/>
                        <ItemStyle HorizontalAlign="Left" Width="80%"/>
                        <ItemTemplate>  
                            <asp:LinkButton ID="lblTenThongBao" Runat="server" CssClass="Link-button" Font-Overline="false" OnClick="lbnTitle_Click">                                 
                            </asp:LinkButton>                            
                        </ItemTemplate>
                    </asp:TemplateField>  
                               
                     <asp:TemplateField HeaderText="File đ&#237;nh k&#232;m">
                        <HeaderStyle HorizontalAlign="Center" Width="20%"/>
                        <ItemStyle HorizontalAlign="Center" Width="20%"/>
                        <ItemTemplate>  
                            <a class="Link-button" href="sharedoc/thongbao/<%# Eval("FileDinhKem")%>">    
                                <img src="Images/Download.ico" border="0" width="16px" height="16px" style="display:<%# ShowFileDinhKem(Convert.ToString(DataBinder.Eval(Container.DataItem, "FileDinhKem")))%>"/>  
                            </a>
                        </ItemTemplate>
                    </asp:TemplateField>  
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" CssClass="Paging_Link" />                
                <RowStyle CssClass="Row_Round" />
                <PagerStyle BackColor="Transparent" CssClass="Paging_NotLink" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="False" ForeColor="#333333" />
                <HeaderStyle CssClass="Row_Title" />
                <EditRowStyle BackColor="Transparent" />
                <AlternatingRowStyle CssClass="Row_Odd" />
                <EmptyDataRowStyle CssClass="Row_Error" />
            </asp:GridView>
        </td>
    </tr>   
</table>